{extend name="base:frame" /}
{block name="main"}
<div class="btnlist"><a href="/admin/slide/edit" class="layui-btn layui-btn-primary">添加幻灯片</a></div>
<table class="layui-table">
  <thead>
  <tr>
    <th width="200">标题</th>
    <th width="100">排序</th>
    <th width="100">缩略图</th>
    <th width="200">操作</th>
  </tr>
  </thead>
  <tbody>
  {volist name="list" id="item" }
  <tr>
    <td>{$item.name}</td>
    <td>{$item.sort}</td>
    <td><img src="{$resurl}{$item.pic}?x-oss-process=image/resize,m_fill,h_40,w_40" /></td>
    <td><a href="/admin/slide/edit?&id={$item.id}">编辑</a><a href="javascript:del('/admin/slide/del?id={$item.id}','确定要删除该幻灯片么')">删除</a></td>
  </tr>
  {/volist}
  </tbody>
</table>
<div class="page">{$list->render()}</div>
{/block}
{block name="script"}
<script>
</script>
{/block}